DATA SEGMENT
    ;保存斐波拉契数列
    F_TABLE DW 20 DUP(?)
DATA ENDS

CODE SEGMENT
    ASSUME CS:CODE,DS:DATA
START:MOV AX,DATA
      MOV DS,AX
      
      MOV SI,0
      MOV CX,18
      MOV F_TABLE[SI],0
      ADD SI,2
      MOV F_TABLE[SI],1
      ADD SI,2
      AAAA:
        MOV DI,SI
        SUB DI,2
        MOV AX,F_TABLE[DI]
        MOV F_TABLE[SI],AX
        SUB DI,2
        MOV AX,F_TABLE[DI]
        ADD F_TABLE[SI],AX
        ADD SI,2
        LOOP AAAA
    
      mov ah,4ch
      int 21h
CODE ENDS
      END START